namespace cnVery.bbs.UI.Admin
{
    using cnVery.bbs.Kernel;
    using cnVery.Controls;
    using cnVery.Utils;
    using System;

    public class admin_menu : AdminMain
    {
        protected Span adminname;
        protected Span forcnvery;
        protected Span username;

        private void InitializeComponent()
        {
            base.Load += new EventHandler(this.Page_Load);
        }

        protected override void OnInit(EventArgs e)
        {
            this.InitializeComponent();
            base.OnInit(e);
        }

        private void Page_Load(object sender, EventArgs e)
        {
            this.username.Text = base.user.Name;
            this.adminname.Text = base.AdminName;
            if (Fetch.CurrentUrl.ToLower().IndexOf("cnvery.net/") == -1)
            {
                this.forcnvery.Visible = false;
            }
        }
    }
}

